package ioperation;

import book.Book;
import book.BookList;

import java.util.Scanner;

public class ShowOperation implements IOperation{
    public void work(BookList bookList){
        System.out.println("显示图书....");
        int size = bookList.getBooksize();
        for (int i = 0; i < size; i++) {
            Book book = bookList.getBook(i);
            System.out.println(book);
        }
    }
}
